﻿<Window x:Class="SharePoint.SPSilver.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SPSilver generator" Height="672" Width="739" Unloaded="Window_Unloaded" Icon="/SPSilver;component/Images/image-name.gif">
    <Grid>
        <ComboBox Height="26" HorizontalAlignment="Left" Margin="120,18,0,0" Name="listBoxSites" VerticalAlignment="Top" Width="217" Loaded="sitesBox_Loaded" IsEditable="True" ToolTip="step 1: type in your site collection url" TabIndex="1"></ComboBox>
        <Button Content="Open" Height="26" HorizontalAlignment="Left" Margin="342,18,0,0" Name="OpenSitesBtn" VerticalAlignment="Top" Width="40" Click="OpenSitesBtn_Click" TabIndex="2" />
        <ComboBox HorizontalAlignment="Left" Margin="120,55,0,0" Name="listBoxWebs" Width="262" Height="26" VerticalAlignment="Top" SelectionChanged="listBoxWebs_SelectionChanged" ToolTip="step 2: select the site that contains your list" IsEnabled="False" TabIndex="3" />
        <ComboBox Height="26" HorizontalAlignment="Left" Margin="120,83,0,0" Name="listBoxLists" VerticalAlignment="Top" Width="262" SelectionChanged="listBoxLists_SelectionChanged" ToolTip="step 3: select the list that contains the content type and fields" IsEnabled="False" TabIndex="4" />
        <GroupBox Header="Output" Margin="387,18,12,16" Name="Fields">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="18*" />
                    <ColumnDefinition Width="271*" />
                </Grid.ColumnDefinitions>
                <TextBox Name="textBlockCode" TextWrapping="Wrap" Text="This is the output Box" FontFamily="Garamond" Cursor="IBeam" DataContext="{Binding}" Focusable="True" ForceCursor="True" AcceptsReturn="True" AcceptsTab="True" IsReadOnly="True" ToolTip="Now, copy and paste the code!!!" Margin="10,0,0,0" Grid.ColumnSpan="2" RenderTransformOrigin="0.459,0.5" />
            </Grid>
        </GroupBox>
        <Button Content="Generate" HorizontalAlignment="Left" Margin="309,522,0,0" Name="Generate" Width="73" Click="Generate_Click" Height="26" VerticalAlignment="Top" />
        <ComboBox Height="26" HorizontalAlignment="Left" Margin="120,111,0,0" Name="listBoxContentTypes" VerticalAlignment="Top" Width="262" SelectionChanged="listBoxContentTypes_SelectionChanged" ToolTip="step 4: select the content type which you want to generate as class. You may change the name of the class below." IsEnabled="False" TabIndex="5" />
        <TextBox HorizontalAlignment="Left" Margin="121,139,0,0" Name="textBoxContentTypeName" Width="166" Height="26" VerticalAlignment="Top" ToolTip="step 5: You may change the name of the class here." IsEnabled="False" TabIndex="6" />
        <ListBox HorizontalAlignment="Left" Margin="13,235,0,0" Name="listBoxFields" Width="369" SelectionMode="Extended" ToolTip="step 6: select the the properties of the the class" IsEnabled="False" Height="108" VerticalAlignment="Top" TabIndex="9" />
        <ListBox Margin="13,375,0,0" Name="listBoxNewClasses" SelectionMode="Extended" ToolTip="step 6: select the the properties of the the class" HorizontalAlignment="Left" Width="369" Height="144" VerticalAlignment="Top" />
        <Button Content="+" HorizontalAlignment="Left" Margin="325,343,0,0" Name="buttonAddToList" Width="26" Height="26" VerticalAlignment="Top" Click="buttonAddToList_Click" TabIndex="10" />
        <Label Content="Site Collection:" Height="26" HorizontalAlignment="Left" Margin="12,18,0,0" Name="labelSiteCollection" VerticalAlignment="Top" Width="116" VerticalContentAlignment="Center" />
        <Label Content="Site:" Height="26" HorizontalAlignment="Left" Margin="12,55,0,0" Name="labelSite" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Label Content="List:" Height="26" HorizontalAlignment="Left" Margin="13,83,0,0" Name="labelList" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Label Content="Content Type:" Height="26" HorizontalAlignment="Left" Margin="12,111,0,0" Name="labelContentType" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Label Content="Content Type Name:" Height="26" HorizontalAlignment="Left" Margin="13,139,0,0" Name="labelContentTypeName" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <TextBox Height="26" HorizontalAlignment="Left" IsEnabled="False" Margin="120,167,0,0" Name="textBoxNamespaceName" ToolTip="step 5: You may change the name of the class here." VerticalAlignment="Top" Width="262" Text="Common" TabIndex="7" />
        <Label Content="Namespace:" Height="26" HorizontalAlignment="Left" Margin="13,167,0,0" Name="labelNamespaceName" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Button Content="-" Height="26" HorizontalAlignment="Left" Margin="356,343,0,0" Name="RemoveCTBtn" VerticalAlignment="Top" Width="26" Click="RemoveCTBtn_Click" />
        <CheckBox Content="Set for Read-Only Properties" IsChecked="True" Height="26" HorizontalAlignment="Left" Margin="13,200,0,0" Name="checkBoxIsReadOnly" VerticalAlignment="Top" Width="279" TabIndex="8" />
        <Label Content="Fields:" Height="26" HorizontalAlignment="Left" Margin="13,215,0,0" Name="FieldsLbl" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Label Content="Content Types:" Height="26" HorizontalAlignment="Left" Margin="13,355,0,0" Name="ContentTypesLbl" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="116" />
        <Button Content="Open" Height="26" HorizontalAlignment="Left" Margin="13,522,0,0" Name="Open" VerticalAlignment="Top" Width="45" Click="Open_Click" />
        <Button Content="Save" Height="26" HorizontalAlignment="Left" Margin="64,522,0,0" Name="Save" VerticalAlignment="Top" Width="45" Click="Save_Click" />
    </Grid>
</Window>
